

import 'package:intl/intl.dart';


extension DateTimeExtend on DateTime {

  /// 格式化
  String format(String pattern){
    DateFormat inputFormat = DateFormat(pattern);
    return inputFormat.format(this);
  }

}
